/*
 * Copyright (c) 2021, 2022, yzfh.cn All rights reserved.
 *
 */
package com.ly.dao.Impl;

import com.ly.dao.UserDao;
import com.ly.domain.User;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @author yzfh
 * @Date 2022/02/15 星期二 15:37:43
 */
public class UserDaoImpl implements UserDao {

    private int[] num;
    private Set<String> sets;
    private List<String> strList;
    private Map<String, User> userMap;
    private  Properties properties;

    public void setNum(int[] num) {
        this.num = num;
    }

    public void setSets(Set sets) {
        this.sets = sets;
    }

    public void setStrList(List<String> strList) {
        this.strList = strList;
    }

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    private String username="admin";
    private int age;

    public void setUsername(String username) {
        this.username = username;
    }

    public void setAge(int age) {
        this.age = age;
    }

/* public UserDaoImpl() {
        System.out.println("UserDaoImpl创建....");
    }

    public void  init(){
        System.out.println("初始化方法....");
    }

    public void  destroy(){
        System.out.println("销毁方法....");
    }*/

    @Override
    public void save() {
//        System.out.println(username+"===="+age);
        System.out.println(strList);
        System.out.println(userMap);
        System.out.println(properties);
        System.out.println("save running.....");
    }
}
